#include "gtest/gtest.h"

#include "IStream.h"

TEST(IStreamTest, use){
    std::shared_ptr<streamdb::IStream> s = streamdb::makeStream("stream");
    ASSERT_TRUE(s->open().isOk());
    ASSERT_TRUE(s->append("helloworld").isOk());
    ASSERT_TRUE(s->flush().isOk());
    ASSERT_TRUE(s->close().isOk());
}

